<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<?php $this->load->view('layout/Header'); ?>
	    <?php $this->load->view('layout/Modal'); ?>
	    <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>Resources/Styles/Payment.css" />
	    <script type="text/javascript" src="<?php echo base_url(); ?>Resources/Scripts/Payment.js"></script>

		<title>DotA 2 Shop</title>
	    
	</head>
	<body>

		<!-- Nav bar -->

		<?php $this->load->view('layout/Navbar'); ?>

		<!-- End Nav -->

		<div class="row" id="row1">
			<div class="col-md-1"></div>

			<div class="col-md-10" id="menubar">
				<?php $this->load->view('layout/Menubar', $hero); ?>
			</div>
		</div>
		
		<br/>

		<!-- Content -->
		<div class="row">
			<div class="col-md-2"></div>
			<div class="col-md-8">
				<div class="container">
		            <div class="row bs-wizard" style="border-bottom:0;">
		                <div class="col-xs-3 bs-wizard-step complete">
		                  <div class="text-center bs-wizard-stepnum">Step 1</div>
		                  <div class="progress"><div class="progress-bar"></div></div>
		                  <a href="#" class="bs-wizard-dot"></a>
		                  <div class="bs-wizard-info text-center">Cart</div>
		                </div>
		                
		                <div class="col-xs-3 bs-wizard-step active">
		                  <div class="text-center bs-wizard-stepnum">Step 2</div>
		                  <div class="progress"><div class="progress-bar"></div></div>
		                  <a href="#" class="bs-wizard-dot"></a>
		                  <div class="bs-wizard-info text-center">Payment</div>
		                </div>
		                
		                <div class="col-xs-3 bs-wizard-step disabled">
		                  <div class="text-center bs-wizard-stepnum">Step 3</div>
		                  <div class="progress"><div class="progress-bar"></div></div>
		                  <a href="#" class="bs-wizard-dot"></a>
		                  <div class="bs-wizard-info text-center">Complete</div>
		                </div>

		            </div>
				</div>
			</div>
		</div>

		<div class="row">
			<div class="col-md-2"></div>
			<div class="col-md-8">
				<div class="payment">
					<div id="radiotab">
						<p>HÌNH THỨC THANH TOÁN</p>
						<div class="row" >
							<div class="col-md-1"></div>
							<div class="col-md-2">
								<input type="radio" name="radioName" value="div1" /><p id="title_div1" class="title">Thanh toán qua ATM</p>
							</div>
							
							<div class="col-md-2">
								<input type="radio" name="radioName" value="div2" /><p id="title_div2" class="title">Thanh toán qua Ibanking</p>
							</div>
							
							<div class="col-md-2">
								<input type="radio" name="radioName" value="div3" /><p id="title_div3" class="title">Thanh toán qua Bảo Kim</p>
							</div>
							
							<div class="col-md-2">
								<input type="radio" name="radioName" value="div4" /><p id="title_div4" class="title">Thanh toán bằng Wallet</p>
							</div>
							
							<div class="col-md-2">
								<input type="radio" name="radioName" value="div5" /><p id="title_div5" class="title">Chuyển khoản ngân hàng</p>
							</div>
						</div>	
					</div>
					<div class="radiotabcontent">
						<div id="div1" hidden class="radiocontent">
							<center>Thanh toán qua ATM</center>
							<form method="post" action="<?php echo base_url(); ?>payment/complete_payment/ATM">
								<div class="row" >
									<div class="col-md-1"></div>
									<div class="col-md-3">
										<div id="radiotab_1">
											<input type="radio" name="radioName_1" value="div1_1" />Cùng ngân hàng ACB
											<br/>
											<input type="radio" name="radioName_1" value="div1_2" />Khác ngân hàng ACB
										</div>
									</div>
									<div class="col-md-7">
										<div id="div1_1" hidden class="radiocontent_1">
										<?php if(is_array($bankaccounts)): ?>
											<?php foreach($bankaccounts as $bankaccount): ?>
												<?php if($bankaccount->BANK_NAME == 'ACB'): ?>
													<input type="radio" name="nganhangthanhtoan_1" value="ACB" />ACB chi nhánh TPHCM - 1591 20059 
												<?php endif; ?>
											<?php endforeach; ?>
										<?php else: ?>
											<a href="<?php echo base_url(); ?>account/myprofile">Vào Profile để thêm tài khoản ngân hàng</a>
										<?php endif; ?>
											
										</div>
										<div id="div1_2" hidden class="radiocontent_1">
											<?php if(is_array($bankaccounts)): ?>
												<?php foreach($bankaccounts as $bankaccount): ?>
													<?php if($bankaccount->BANK_NAME == 'Agribank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="Agribank" />Agribank chi nhánh 9 - 6300 20555 0037 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'BIDV'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="BIDV" />BIDV chi nhánh Ðông Sài Gòn - 3141 000 1500962 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'DongA'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="DongA" />Ðông Á chi nhánh PGD Thủ Ðức - 01077 58159 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'Sacombank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="Sacombank" />Sacombank chi nhánh PGD Binh Thái - 0600 7248 6431 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'Techcombank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="Techcombank" />Techcombank chi nhánh TPHCM - 1902 7497 346017 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'VietcomBank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="VietcomBank" />VietcomBank chi nhánh Thủ Ðức - 0381 000 391437 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'VietinBank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_1" value="VietinBank" />VietinBank chi nhánh Ðông Sài Gòn - 711A 1578 3983
													<?php endif; ?>
													 
												<?php endforeach; ?>
											<?php else: ?>
												<br/>
												<a href="<?php echo base_url(); ?>account/myprofile">Vào Profile để thêm tài khoản ngân hàng</a>
											<?php endif; ?>
										</div>
									</div>
								</div>

								<div class="row">
									<div class="col-md-1"></div>
									<div class="col-md-10">
										<button type='submit' name='btnAction' value='thanhoan_1' class="btn btn-success btn-lg" style="float:right;" >Thanh toán</button>
									</div>
								</div>
							</form>
						</div>

						<div id="div2" hidden class="radiocontent">
							<center>Thanh toán qua Ibanking</center>
							<form method="post" action="<?php echo base_url(); ?>payment/complete_payment/IB">
								<div class="row">
									<div class="col-md-1"></div>
									<div class="col-md-3">
										<div id="radiotab_2" >
											<input type="radio" name="radioName_2" value="div2_1" />Cùng ngân hàng ACB
											<br/>
											<input type="radio" name="radioName_2" value="div2_2" />Khác ngân hàng ACB
										</div>
									</div>
									<div class="col-md-7">
										<div id="div2_1" hidden class="radiocontent_2">
											<?php if(is_array($bankaccounts)): ?>
												<?php foreach($bankaccounts as $bankaccount): ?>
													<?php if($bankaccount->BANK_NAME == 'ACB'): ?>
														<input type="radio" name="nganhangthanhtoan_2" value="ACB" />ACB chi nhánh TPHCM - 1591 20059 
													<?php endif; ?>
												<?php endforeach; ?>
											<?php else: ?>
												<a href="<?php echo base_url(); ?>account/myprofile">Vào Profile để thêm tài khoản ngân hàng</a>
											<?php endif; ?>
										</div>
										<div id="div2_2" hidden class="radiocontent_2">
											<?php if(is_array($bankaccounts)): ?>
												<?php foreach($bankaccounts as $bankaccount): ?>
													<?php if($bankaccount->BANK_NAME == 'Agribank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="Agribank" />Agribank chi nhánh 9 - 6300 20555 0037 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'BIDV'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="BIDV" />BIDV chi nhánh Ðông Sài Gòn - 3141 000 1500962 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'DongA'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="DongA" />Ðông Á chi nhánh PGD Thủ Ðức - 01077 58159 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'Sacombank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="Sacombank" />Sacombank chi nhánh PGD Binh Thái - 0600 7248 6431 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'Techcombank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="Techcombank" />Techcombank chi nhánh TPHCM - 1902 7497 346017 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'VietcomBank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="VietcomBank" />VietcomBank chi nhánh Thủ Ðức - 0381 000 391437 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'VietinBank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan_2" value="VietinBank" />VietinBank chi nhánh Ðông Sài Gòn - 711A 1578 3983
													<?php endif; ?>
													 
												<?php endforeach; ?>
											<?php else: ?>
												<br/>
												<a href="<?php echo base_url(); ?>account/myprofile">Vào Profile để thêm tài khoản ngân hàng</a>
											<?php endif; ?> 
										</div>
									</div>
								</div>

								<div class="row">
									<div class="col-md-1"></div>
									<div class="col-md-10">
										<button type='submit' name='btnAction' value='thanhtoan_2' class="btn btn-success btn-lg" style="float:right;" >Thanh toán</button>
									</div>
								</div>
							</form>
						</div>

						<div id="div3" hidden class="radiocontent">
							<center>Thanh toán qua Bảo Kim</center>
							<div class="row">
								<div class="baokim">
									
								</div>
							</div>

							<div class="row">
								<div class="col-md-1"></div>
								<div class="col-md-10">
									<br/>
									<a href="<?php echo base_url(); ?>payment/complete_payment/BK" ><button type='button' name='btnAction' value='thanhtoan_3' class="btn btn-success btn-lg" style="float:right;" >Thanh toán</button></a>
								</div>
							</div>
						</div>

						<div id="div4" hidden class="radiocontent">
							<center>Thanh toán bằng Wallet</center>
							<div class="row">
								<div class="col-md-2"></div>
								<div class="col-md-8">
									
								</div>
							</div>

							<div class="row">
								<div class="col-md-1"></div>
								<div class="col-md-10">
									<a href="<?php echo base_url(); ?>payment/complete_payment/WALLET" ><button type='button'  <?php if($this->session->userdata('wallet') == '' || $this->session->userdata('wallet') <= 0) echo 'disabled'; ?> name='btnAction' value='thanhtoan_4' class="btn btn-success btn-lg" style="float:right;" >Thanh toán</button></a>
								</div>
							</div>
						</div>

						<div id="div5" hidden class="radiocontent">
							<center>Chuyển khoản qua ngân hàng</center>
							<br/>
							<form method="post" action="<?php echo base_url(); ?>payment/complete_payment/CK">
								<div class="row">
									<div class="col-md-1"></div>
									<div class="col-md-3">
										<div id="radiotab_3" >
											<input type="radio" name="radioName_3" value="div3_1" />Cùng ngân hàng ACB
											<br/>
											<input type="radio" name="radioName_3" value="div3_2" />Khác ngân hàng ACB
										</div>
									</div>
									<div class="col-md-7">
										<div id="div3_1" hidden class="radiocontent_3">
											<?php if(is_array($bankaccounts)): ?>
												<?php foreach($bankaccounts as $bankaccount): ?>
													<?php if($bankaccount->BANK_NAME == 'ACB'): ?>
														<input type="radio" name="nganhangthanhtoan" value="ACB" />ACB chi nhánh TPHCM - 1591 20059 
													<?php endif; ?>
												<?php endforeach; ?>
											<?php else: ?>
												<a href="<?php echo base_url(); ?>account/myprofile">Vào Profile để thêm tài khoản ngân hàng</a>
											<?php endif; ?>
										</div>
										<div id="div3_2" hidden class="radiocontent_3">
											<?php if(is_array($bankaccounts)): ?>
												<?php foreach($bankaccounts as $bankaccount): ?>
													<?php if($bankaccount->BANK_NAME == 'Agribank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="Agribank" />Agribank chi nhánh 9 - 6300 20555 0037 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'BIDV'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="BIDV" />BIDV chi nhánh Ðông Sài Gòn - 3141 000 1500962 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'DongA'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="DongA" />Ðông Á chi nhánh PGD Thủ Ðức - 01077 58159 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'Sacombank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="Sacombank" />Sacombank chi nhánh PGD Binh Thái - 0600 7248 6431 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'Techcombank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="Techcombank" />Techcombank chi nhánh TPHCM - 1902 7497 346017 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'VietcomBank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="VietcomBank" />VietcomBank chi nhánh Thủ Ðức - 0381 000 391437 
													<?php endif; ?>

													<?php if($bankaccount->BANK_NAME == 'VietinBank'): ?>
														<br/>
														<input type="radio" name="nganhangthanhtoan" value="VietinBank" />VietinBank chi nhánh Ðông Sài Gòn - 711A 1578 3983
													<?php endif; ?>
													 
												<?php endforeach; ?>
											<?php else: ?>
												<br/>
												<a href="<?php echo base_url(); ?>account/myprofile">Vào Profile để thêm tài khoản ngân hàng</a>
											<?php endif; ?> 
										</div>
									</div>
								</div>


								<div class="row">
									<div class="col-md-1"></div>
									<div class="col-md-10">
										<button type='submit' name='btnAction' value='thanhtoan_5' class="btn btn-success btn-lg" style="float:right;" >Thanh toán</button>
									</div>
								</div>
							</form>
						</div>

					</div>
				</div>
			</div>
		</div>

		<!-- Footer -->
		<?php $this->load->view('layout/Footer'); ?>

	</body>
</html>